<?php

function getmicrotime() { 
   list($usec, $sec) = explode(" ", microtime()); 
   return ((float)$usec + (float)$sec); 
}
$time_start = getmicrotime();

//$root = $_SERVER['DOCUMENT_ROOT'];
$root = "c:/http/new/apache/public_html" ;
$path[] = $root.'/cdo/phptest_beta/PEAR';
$path[] = $root.'/cdo/phptest_beta/myXML';

if (substr(PHP_OS, 0, 3) == 'WIN') {
    $searchPath = implode(';', $path).';';
} else {
    $searchPath = implode(':', $path).':';
}

// Set the search path.
ini_set('include_path', $searchPath);
ini_set('allow_call_time_pass_reference',"true");




@require_once('XML_Preprocessor.php');
@require_once('myDOM/myDOM.php');
@require_once('myXPath/myXPath.php');
@require_once('myXSLT/myXSLT.php');

PEAR::setErrorHandling(PEAR_ERROR_RETURN, E_USER_ERROR);

// Create new DOM documents for input, output and stylesheet data.
$oDocument = new Document;
$oXml = XML_Preprocessor::create($oDocument);

// As in a file sample.xml is used PHP code, for its parsing the object of class
// XML_Preprocessor will be used.
$oXml->parseFile('xml0001.xml');

echo $oDocument->documentElement->childNodes->_list[0]->attributes->_namedMap["id"]->value ;







?>
